package health.lm.com.find.presenter;

import java.util.ArrayList;
import java.util.List;

import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.find.entity.HActivityEntity;
import health.lm.com.find.entity.MemberAffiliateEntity;
import health.lm.com.find.fragment.MemberAffiliateFragment;
import health.lm.com.find.model.ExperienceModel;
import health.lm.com.network.callback.SimpleCallBack;

/**
 * @author GQI
 * @description: 会员联盟商
 * @date :2019-08-12 15:16
 */
public class MemberAffiliatePresenter extends XPresent<MemberAffiliateFragment> {
    public void getColumn(){
        ExperienceModel.getInstance().lms(new SimpleCallBack<MemberAffiliateEntity>() {
            @Override
            public void onSuccess(MemberAffiliateEntity entities) {
                if (hasV()){
                    getV().getColumn(entities.getCategory_list());
                }
            }
        });

    }
}
